<?php
class Db_info extends CI_Model{
	public function __construct(){
		parent::__construct();
	}
	
	public function info_detail(){
		$this->db->where("pkid",$this->session->userdata("sess_customer_id"));
		$row = $this->db->get("mobile_customer")->row();
		
	}
	
	public function country_list($id=""){
		$this->db->order_by("name","asc");
		$res =$this->db->get("mobile_country");
		$str = '<option value="">=select country=</option>';
		foreach ($res->result_array() as $P){
			if($id == $P['pkid']) $ch = 'selected="selected"';
			else $ch="";
			$str .='<option value="'.$P['pkid'].'" '.$ch.'>'.$P['name'].'</option>';
		}
		return $str;
	}
	
}
?>